package com.gtt.jr.action.admin;

import javax.annotation.Resource;

import com.gtt.jr.action.base.BaseModelAction;
import com.gtt.jr.action.model.ContainerListModel;
import com.gtt.jr.app.ContainerRepository;

/**
 * 集装箱列表Action
 * 
 * @author 高甜甜(gao12581@sina.com)
 * @date 2010-9-4
 * 
 */
public class ContainerListExecAction extends BaseModelAction<ContainerListModel> {

	private static final long serialVersionUID = -7451285157773716467L;

	@Resource
	private ContainerRepository containerRepository;

	@Override
	public String execute() throws Exception {
		getModel().setData(containerRepository.find(getModel().getId()));
		return JSON;
	}
}
